home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 24 / MacFormat n. 24 (Spain) / MacFormat 24.bin / Demos / Jungle Activated! / JungleActivated Demo / jung DEMO d / 00162_Mixer- Loop Selector 1.ls < prev    next >
Encoding:
Text File  |  1996-10-14  |  461 b   |  19 lines

  1. on mouseUp
  2.   global gWhichSound3, gLastLoop
  3.   set the volume of sound 12 to 0
  4.   puppetSprite(8, 1)
  5.   if the foreColor of sprite 8 = 255 then
  6.     undoLoop()
  7.     set the foreColor of sprite 8 to 226
  8.     set gWhichSound3 to getpn() & "Sounds:Loops:Loop1.aif"
  9.     sound playFile 4, gWhichSound3
  10.     set gLastLoop to 4
  11.   else
  12.     set the foreColor of sprite 8 to 255
  13.     set gWhichSound3 to EMPTY
  14.     sound stop 4
  15.     set gLastLoop to 0
  16.   end if
  17.   updateStage()
  18. end
  19.